const {
    Mysql
} = require('../tools/utils');
module.exports = async (ctx) => {
    let {
        vid
    } = ctx.query;
    let sql = `INSERT INTO recommend(vid) VALUES(${Number(vid)}) `;
    try {
        await Mysql(sql);
        ctx.state.data = {
            msg: 'OK'
        }
    } catch (error) {

    }
}